package com.sqx.modules.app.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sqx.common.utils.Result;
import com.sqx.modules.app.entity.UserCertification;
import com.sqx.modules.app.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserCertificationDao extends BaseMapper<UserCertification> {

    IPage<UserCertification> queryCertification(IPage<UserCertification> iPage, @Param("status") String status,
                                                @Param("name") String name,@Param("classify") Integer classify,
                                                @Param("isRecommend") Integer isRecommend,@Param("onLine") Integer onLine,
                                                @Param("city") String city,@Param("classifyId") Integer classifyId,
                                                @Param("longitude") String longitude,@Param("latitude") String latitude,
                                                String shopName,String phone,Integer sort);

    List<UserCertification> queryCertificationList(@Param("status") String status,
                                                @Param("name") String name,@Param("classify") Integer classify,
                                                @Param("isRecommend") Integer isRecommend,@Param("onLine") Integer onLine,
                                                @Param("city") String city,@Param("classifyId") Integer classifyId,
                                                @Param("longitude") String longitude,@Param("latitude") String latitude,String shopName,String phone);

    UserCertification selectCertificationById(@Param("id") Long id,@Param("longitude") String longitude,@Param("latitude") String latitude);


    IPage<Map<String, Object>> queryUserCertification(IPage iPage, @Param("name") String name,@Param("phone")String phone,Integer classify,String shopName);

}
